Skip to content

feat(tasks): [1/2] let quick form tasks send extra task source metadata [ACTN-11909] - #1948

Open
Sahil-Wakode wants to merge 4 commits into
mainfrom
feat/quickform-task-source-metadata
Open

Sahil-Wakode wants to merge 4 commits into
mainfrom
feat/quickform-task-source-metadata

Conversation

@Sahil-Wakode

@Sahil-Wakode Sahil-Wakode commented Oct 19, 2026 •

Copy link
Copy Markdown

What

create_quickform_async now takes task_source_metadata, like create_async already does.

Quick form tasks already send taskSourceMetadata, but only the fixed keys the SDK sets (InstanceId, FolderKey, JobKey, ProcessKey). Callers had no way to add their own keys. Now any keys passed in task_source_metadata are added to that block.

Why

Action Center shows task events in the trace and needs a ParentSpanId to place them under the right step. App tasks can already send it. Quick form tasks couldn't. Part 2 (uipath-langchain-python) sends it from the escalation tool.

Changes

  • _tasks_service.py: pass task_source_metadata from create_quickform_async to the request.
  • test_actions_service.py: test that the extra key is sent and the fixed keys are kept.
  • uipath-platform bumped to 0.2.42 so part 2 can depend on it.

Testing

  • test_actions_service.py: 33/33 pass. The new test fails without this change.
  • ruff format and ruff check pass.

@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels Oct 19, 2026
@Sahil-Wakode Sahil-Wakode changed the title feat(tasks): accept task_source_metadata when creating quick form tasks [ACTN-11909] feat(tasks): [1/2] accept task_source_metadata when creating quick form tasks [ACTN-11909] Oct 19, 2026
@github-actions

Copy link
Copy Markdown

🚨 Heads up: uipath-langchain cross-tests are FAILING 🚨

Your changes may break the uipath-langchain-python integration.

⚠️ These checks are NOT enforced by branch protection rules. Please review the failures before merging.

🔍 Inspect the failed run →

@Sahil-Wakode Sahil-Wakode changed the title feat(tasks): [1/2] accept task_source_metadata when creating quick form tasks [ACTN-11909] feat(tasks): [1/2] accept task_source_metadata on every task create method [ACTN-11909] Oct 19, 2026
@Sahil-Wakode Sahil-Wakode changed the title feat(tasks): [1/2] accept task_source_metadata on every task create method [ACTN-11909] feat(tasks): [1/2] accept task_source_metadata in create_quickform_async [ACTN-11909] Oct 22, 2026
@Sahil-Wakode
Sahil-Wakode force-pushed the feat/quickform-task-source-metadata branch from 6b8b66c to ff73d76 Compare October 22, 2026 09:41
@sonarqubecloud

Copy link
Copy Markdown

@Sahil-Wakode
Sahil-Wakode marked this pull request as ready for review October 23, 2026 09:17
Copilot AI balanced review requested due to automatic review settings October 23, 2026 09:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The backward-compatible change reuses existing merge behavior, includes a focused regression test, and has no identified blocking issues.

No open issues 🎉

What changed in this PR

Adds optional task_source_metadata support to asynchronous QuickForm creation, enabling Action Center task events to link to the correct trace span.

Changes:

  • Passes custom metadata through the existing task-source merge helper; synchronous creation remains unchanged.
  • Adds a regression test verifying ParentSpanId is included and InstanceId is preserved.
  • Bumps uipath-platform to 0.2.42 and updates both lockfiles.
File Description
packages/​uipath/​uv.lock Updates the platform package version.
packages/​uipath-platform/​uv.lock Updates the platform package version.
packages/​uipath-platform/​tests/​services/​test_actions_service.py Tests custom metadata merging for async QuickForms.
packages/​uipath-platform/​src/​uipath/​platform/​action_center/​_tasks_service.py Adds and forwards the optional metadata parameter.
packages/​uipath-platform/​pyproject.toml Bumps the package version to 0.2.42.

Review effort: Balanced

@Sahil-Wakode Sahil-Wakode changed the title feat(tasks): [1/2] accept task_source_metadata in create_quickform_async [ACTN-11909] feat(tasks): [1/2] let quick form tasks send extra task source metadata [ACTN-11909] Oct 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-integrations test:uipath-langchain Triggers tests in the uipath-langchain-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants